import request from '@/utils/request'

export function move(data) {
  return request({
    url: `api/superiors/junior/move?junior=${data.junior}&superiors=${data.superiors}`,
    method: 'get'
  })
}
export function yxUser(data) {
  return request({
    url: `api/yxUser?nickname=${data.nickname}&isService=0&roleLevel=${data.roleLevel}`,
    method: 'get'

  })
}
export function yxUserMember(data) {
  return request({
    url: `api/yxUser?nickname=${data.nickname}&isService=0&type=1&roleLevel=1`,
    method: 'get'

  })
}
export function yxUserDelete(id) {
  return request({
    url: `api/yxUser?id=` + id,
    method: 'DELETE'

  })
}
export function spread(data) {
  return request({
    url: `api/yxUser/spread`,
    method: 'post',
    data
  })
}

